<?php
namespace app\circle\validate;
use think\Validate;

/**
 * 工作圈信息验证器
 * Created by PhpStorm.
 * User: tyll
 * Date: 2019/09/26
 * Time: 10:10
 */
class WorkCircleMsg extends Validate{

    protected $rule = [
        'content' => 'require',
        'is_top'  => 'require'
    ];

    protected $message = [
        'content.require' => '内容必须填写',
        'is_top.require'  => '是否置顶必须填写'
    ];

    protected $scene = [
        'add'  => ['content','is_top'],
        'edit' => ['content','is_top']
    ];
}